import request from '@/utils/request'

export function getUserList (params) {
	return request({
		url: '/basic-api/zd/user/getUserList',
		method: 'get',
		params
	})
}
export function getUser () {
	return request({
		url: '/basic-api/zd/user/getCurUser',
		method: 'get',
	})
}
export function login (data) {
	return request({
		url: '/basic-api/zd/user/login',
		method: 'post',
		data
	})
}

export function addUser (data) {
	return request({
		url: '/basic-api/zd/user/add',
		method: 'post',
		data
	})
}

export function updateUser (data) {
	return request({
		url: '/basic-api/zd/user/update',
		method: 'post',
		data
	})
}

export function removeUser (id) {
	return request({
		url: '/basic-api/zd/user/remove/' + id,
		method: 'post',
	})
}